Crate std_embedded_time[][src]

Expand description

Standard embedded-time

This library provides an embedded_time::Clock that can be used for host-side testing.

The provided embedded_time::Clock implementation is based on std::time.

Usage

use std_embedded_time::StandardClock;
use embedded_time::Clock;

fn main() {
    let clock = StandardClock::default();

    let now = clock.try_now().unwrap();
    println!("Current time: {:?}", now);
}

Re-exports

pub use embedded_time;

Structs

A clock with nanosecond precision.